package com.gmu.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 单位表
 * </p>
 *
 * @author testjava
 * @since 2022-07-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TblUnits对象", description="单位表")
public class TblUnits implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "单位id")
    @TableId(value = "units_id", type = IdType.AUTO)
    private Integer unitsId;

    @ApiModelProperty(value = "单位名称")
    private String name;

    @ApiModelProperty(value = "是否是采样方(1是-0否)")
    private Integer sampleStatus;

    @ApiModelProperty(value = "角色id")
    private Integer roleId;

    @ApiModelProperty(value = "单位人数")
    private Integer unitsPeoples;

    @ApiModelProperty(value = "父id")
    private Integer parentId;

    @ApiModelProperty(value = "是否有下级")
    private Integer isParent;

    @ApiModelProperty(value = "单位码")
    private String unitsCode;

    @ApiModelProperty(value = "角色")
    @TableField(exist = false)
    private TblRole tblRole;

    @ApiModelProperty(value = "子单位列表")
    @TableField(exist = false)
    private List<TblUnits> children;

    @ApiModelProperty(value = "返回结果，存储过程使用")
    @TableField(exist = false)
    private Integer result;


}
